﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SH.Common.DataDictionary;
using SqlSugar;

namespace SH.Common.CommonClass
{
    /// <summary>
    /// 操作日志
    /// </summary>
    public class OperationLog : Tenant
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int OperationId { get; set; }
        /// <summary>
        /// 操作账号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)", IsNullable = false)]
        public string? OperationName { get; set; }
        /// <summary>
        /// 操作模块
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)", IsNullable = true)]
        public string? OperationModule { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>

        public DateTime OperationTime { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string? OperationContent { get; set; }

    }
}
